package com.woniuxueyuan.service;

import com.nimbusds.jose.JOSEException;
import com.woniuxueyuan.entity.User;
import com.woniuxueyuan.entity.dto.AddrAndUserCartDTO;
import com.woniuxueyuan.entity.dto.LoginDTO;
import com.woniuxueyuan.util.ResponseData;

import java.text.ParseException;
import java.util.Map;

public interface UserService {
    /**
     * 用户登录接口
     *
     * @param user
     * @return
     */
    LoginDTO login(User user) throws JOSEException;
    /**
     * 用户添加购物车
     */
    void addCart(Integer id,Integer buyNum) throws ParseException;
    Map queryAddrAndUserCart() throws ParseException;
}
